package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.BaseCategoryView;
import com.atguigu.tingshu.vo.album.AlbumCategoryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseCategoryViewMapper extends BaseMapper<BaseCategoryView> {
    /**
     * 查询所有专辑分类数据
     * @author Petrichor
     * @date 2023/12/20 10:12
     * @return AlbumCategoryVo 专辑分类数据 [专辑分类名称,专辑分类Id,专辑子分类集合]
     **/
    List<AlbumCategoryVo> getBaseCategoryList();
    /**
     * 根据一级分类id获取全部分类信息
     * @author Petrichor
     * @date 2023/12/27 22:31
     * @param category1Id 一级分类id
     * @return AlbumCategoryVo 专辑分类数据
     **/
    AlbumCategoryVo getCategoryInfoByCategory1Id(Long category1Id);
}
